package com.aaa.lx1031;

/**
 * @author 荆豪峰
 * @version 1.0
 */
public class lx01 {

    public static void main(String[] args) {
        MyTicket task1=new MyTicket();
        Thread t1=new Thread(task1,"窗口A");
        Thread t2=new Thread(task1,"窗口B");
        Thread t3=new Thread(task1,"窗口C");
        Thread t4=new Thread(task1,"窗口D");

        t1.start();
        t2.start();
        t3.start();
        t4.start();

        MyTicket01 task2=new MyTicket01();
        Thread t01=new Thread(task2,"窗口A");
        Thread t02=new Thread(task2,"窗口B");
        Thread t03=new Thread(task2,"窗口C");
        Thread t04=new Thread(task2,"窗口D");

        t01.start();
        t02.start();
        t03.start();
        t04.start();
    }
}
